Optimal. Leaf size=43 \[ -\frac {2 \cos (e+f x) \, _2F_1\left (\frac {1}{2},-n;\frac {3}{2};1-\sin (e+f x)\right )}{f \sqrt {1+\sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2855, 67}
\begin {gather*} -\frac {2 \cos (e+f x) \, _2F_1\left (\frac {1}{2},-n;\frac {3}{2};1-\sin (e+f x)\right )}{f \sqrt {\sin (e+f x)+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 2855
Rubi steps
\begin {align*} \int \sin ^n(e+f x) \sqrt {1+\sin (e+f x)} \, dx &=\frac {\cos (e+f x) \text {Subst}\left (\int \frac {x^n}{\sqrt {1-x}} \, dx,x,\sin (e+f x)\right )}{f \sqrt {1-\sin (e+f x)} \sqrt {1+\sin (e+f x)}}\\ &=-\frac {2 \cos (e+f x) \, _2F_1\left (\frac {1}{2},-n;\frac {3}{2};1-\sin (e+f x)\right )}{f \sqrt {1+\sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.45, size = 186, normalized size = 4.33 \begin {gather*} \frac {2^{1-n} e^{i (e+f x)} \left (-i e^{-i (e+f x)} \left (-1+e^{2 i (e+f x)}\right )\right )^{1+n} \left (i (-1+2 n) \, _2F_1\left (1,\frac {1}{4} (3+2 n);\frac {1}{4} (3-2 n);e^{2 i (e+f x)}\right )+e^{i (e+f x)} (1+2 n) \, _2F_1\left (1,\frac {1}{4} (5+2 n);\frac {1}{4} (5-2 n);e^{2 i (e+f x)}\right )\right ) \sqrt {1+\sin (e+f x)}}{\left (i+e^{i (e+f x)}\right ) f (-1+2 n) (1+2 n)} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.07, size = 0, normalized size = 0.00 \[\int \left (\sin ^{n}\left (f x +e \right )\right ) \sqrt {1+\sin \left (f x +e \right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {\sin {\left (e + f x \right )} + 1} \sin ^{n}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int {\sin \left (e+f\,x\right )}^n\,\sqrt {\sin \left (e+f\,x\right )+1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________